<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>    
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>student/edit.jsp</title>
</head>
<body>
<form action="save" method="post">
	<input name="id" type="hidden" value="${model.id }">
	学号<input name="stuNum" type="text" value="${model.stuNum }"><br>
	姓名<input name="name" type="text" value="${model.name }"><br>
	性别<select name="sex">
			<option value="" style="display: none;"></option>
			<option value="男" ${model.sex=='男'?'selected':'' }>男</option>
			<option value="女" ${model.sex=='女'?'selected':'' }>女</option>
		</select><br>
	职务<input name="job" type="text" value="${model.job }"><br>
	班级<select name="claxx.id">
			<option value="" style="display: none;"></option>
			<c:forEach items="${models }" var="mo">
				<option value="${mo.id }" ${mo.id==model.claxx.id?'selected':'' }>${mo.name }</option>
			</c:forEach>
		</select><br>
	密码<input name="password" type="text" value="${model.password }"><br>
	<button type="submit">确定</button>
</form>
</body>
</html>